package com.bdc.whatwhat.activities;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.bdc.whatwhat.R;
import com.bdc.whatwhat.receiver.AlarmManagerBroadcastReceiver;
import com.bdc.whatwhat.session.SessionManager;

/**
 * Created by dev-w8-gfi on 30/06/2014.
 */
public class ChangeStatut extends Activity implements View.OnClickListener {


    private View view;
    public int status;
    public LinearLayout background;
    private LinearLayout.LayoutParams params;
    private ImageView image;



    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        // On instancie avec le layout de la vue
        setContentView(R.layout.tmp_change_statut);
    }

    @Override
    public void onClick(View view) {

        Log.e("je suis la","oui");
        //String statut = ((EditText) findViewById(R.id.valueStatut)).getText().toString();
        long time = System.currentTimeMillis();

        SessionManager session = new SessionManager(this);
        //session.setStatut(statut);
        session.setTime(time);

        //AlarmManagerBroadcastReceiver.statut = statut;
        AlarmManagerBroadcastReceiver.time = time;

        finish();
    }
}
